using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace HDS.Model.Entity.Master
{
    /// <summary>
    /// 分销商订单 
    /// </summary>
    [SugarTable("order_hotel_distributor")]
    public class OrderHotelDistributor
    {

        /// <summary>
        /// 订单号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "order_id")]
        public string OrderId { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        [SugarColumn(ColumnName = "order_status")]
        public OrderHotelStatus OrderStatus { get; set; }

        /// <summary>
        /// 分销商
        /// </summary>
        [SugarColumn(ColumnName = "distributor")]
        public string Distributor { get; set; }

        /// <summary>
        /// 分销商订单号
        /// </summary>
        [SugarColumn(ColumnName = "distributor_order_id")]
        public string DistributorOrderId { get; set; }

        /// <summary>
        /// 分销商订单状态
        /// </summary>
        [SugarColumn(ColumnName = "distributor_order_status")]
        public DistributorOrderStatus DistributorOrderStatus { get; set; }

        /// <summary>
        /// 酒店id
        /// </summary>
        [SugarColumn(ColumnName = "hotel_id")]
        public int HotelId { get; set; }

        /// <summary>
        /// 酒店名称
        /// </summary>
        [SugarColumn(ColumnName = "hotel_name")]
        public string HotelName { get; set; }

        /// <summary>
        /// 酒店地址
        /// </summary>
        [SugarColumn(ColumnName = "hotel_address")]
        public string HotelAddress { get; set; }

        /// <summary>
        /// 酒店国家
        /// </summary>
        [SugarColumn(ColumnName = "hotel_country_name")]
        public string HotelCountryName { get; set; }

        /// <summary>
        /// 酒店城市
        /// </summary>
        [SugarColumn(ColumnName = "hotel_city_name")]
        public string HotelCityName { get; set; }

        /// <summary>
        /// 酒店确认号
        /// </summary>
        [SugarColumn(ColumnName = "hotel_confirm_no")]
        public string HotelConfirmNo { get; set; }

        /// <summary>
        /// 房型id
        /// </summary>
        [SugarColumn(ColumnName = "room_id")]
        public int RoomId { get; set; }

        /// <summary>
        /// 房型名称
        /// </summary>
        [SugarColumn(ColumnName = "room_name")]
        public string RoomName { get; set; }

        /// <summary>
        /// 价格计划id
        /// </summary>
        [SugarColumn(ColumnName = "rateplan_id")]
        public string RateplanId { get; set; }

        /// <summary>
        /// 房间数
        /// </summary>
        [SugarColumn(ColumnName = "room_count")]
        public int RoomCount { get; set; }

        /// <summary>
        /// 入住日期
        /// </summary>
        [SugarColumn(ColumnName = "checkin")]
        [Newtonsoft.Json.JsonConverter(typeof(ShortDateConvert))]
        public DateTime Checkin { get; set; }

        /// <summary>
        /// 退房日期
        /// </summary>
        [SugarColumn(ColumnName = "checkout")]
        [Newtonsoft.Json.JsonConverter(typeof(ShortDateConvert))]
        public DateTime Checkout { get; set; }

        /// <summary>
        /// 入住人信息
        /// </summary>
        [SugarColumn(ColumnName = "guest_room_json")]
        public string GuestRoomJson { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [SugarColumn(ColumnName = "contact_name")]
        public string ContactName { get; set; }

        /// <summary>
        /// 联系人电话
        /// </summary>
        [SugarColumn(ColumnName = "contact_phone")]
        public string ContactPhone { get; set; }

        /// <summary>
        /// 联系人email
        /// </summary>
        [SugarColumn(ColumnName = "contact_email")]
        public string ContactEmail { get; set; }

        /// <summary>
        /// 餐食类型
        /// </summary>
        [SugarColumn(ColumnName = "meal_type")]
        public MealType MealType { get; set; }

        /// <summary>
        /// 餐食数量
        /// </summary>
        [SugarColumn(ColumnName = "meal_count")]
        public int MealCount { get; set; }

        /// <summary>
        /// 免费取消时限
        /// </summary>
        [SugarColumn(ColumnName = "free_cancel_time")]
        public DateTime FreeCancelTime { get; set; }

        /// <summary>
        /// 客人备注
        /// </summary>
        [SugarColumn(ColumnName = "guest_note")]
        public string GuestNote { get; set; }

        /// <summary>
        /// 销售货币
        /// </summary>
        [SugarColumn(ColumnName = "currency")]
        public string Currency { get; set; }

        /// <summary>
        /// 销售金额
        /// </summary>
        [SugarColumn(ColumnName = "price")]
        public decimal Price { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "created_time")]
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "updated_time")]
        public DateTime UpdatedTime { get; set; }

    }
}
